/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.toko.dao;

import com.toko.model.Customer;
import java.util.List;

/**
 *
 * @author Benny
 */
public interface CustomerDAO {

    public void insert(Customer customer) throws Exception;

    public void delete(int id) throws Exception;

    public void update(int oldId, Customer customer) throws Exception;

    public Customer getCustomer(int id) throws Exception;

    public List<Customer> getCustomers() throws Exception;

    public Customer login(String username) throws Exception;
}
